/*
 * ComplexNumber.h
 *
 *  Created on: Oct 29, 2012
 *  Author: Trenton Nall
 *  Assignment: Homework 7
 */

#ifndef COMPLEXNUMBER_H_
#define COMPLEXNUMBER_H_

// Class Purpose: Models the behavior of a complex number specified for problem 3
//		of homework 7. See ComplexNumber.cpp for method documentation.
class ComplexNumber {
public:
	ComplexNumber(double real, double imaginary);
	void add(ComplexNumber &number);
	void subtract(ComplexNumber &number);
	void multiplyBy(ComplexNumber &number);
	void divideBy(ComplexNumber &number);
	double getReal() const;
	double getImaginary() const;
private:
	double real;  // store real component of #
	double imaginary; // store imaginary component of #
};

#endif /* COMPLEXNUMBER_H_ */
